package cn.kone.system.mapper;

import cn.kone.system.domain.Role;
import cn.kone.system.query.RoleQuery;

import java.util.List;

public interface RoleMapper {

    //查询单个
    Role findOne(Long id);

    //查询所有
    List<Role> findAll();

    //新增
    void addRole(Role role);

    //修改
    void updateRole(Role role);

    //删除
    void deleteRole(Long id);

    //高级查询+分页查询
    List<Role> pageQuery(RoleQuery roleQuery);

    //批量删除用户信息
    void batchDeleteRole(Long[] ids);

    //新增角色权限
    void addRolePermissions(Role role);

    //新增角色菜单
    void addRoleMenus(Role role);

    //删除角色菜单
    void delMenu(Long id);

    //删除角色权限
    void delPermission(Long id);
}
